package cn.exrick.xboot.base.service

import cn.exrick.xboot.base.dto.EnterpriseEmployeeRecordJudgeAnswerDto
import cn.exrick.xboot.base.entity.EnterpriseEmployeeRecord
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import com.baomidou.mybatisplus.extension.service.IService

/**
 * 企业员工考试记录接口
 * @author Fei
 */
interface IEnterpriseEmployeeRecordService : IService<EnterpriseEmployeeRecord?> {


    /**
     * 添加或者创建员工考试记录(模拟考试结束提交)
     */
    fun createOrUpdateEnterpriseEmployeeRecord(enterpriseEmployeeRecord: EnterpriseEmployeeRecord): Result<Any?>?

    /**
     * 判断员工答案是否正确
     */
    fun judgeAnswerRightOrFalse(enterpriseEmployeeRecordJudgeAnswerDto: EnterpriseEmployeeRecordJudgeAnswerDto): Result<Boolean>?

    /**
     * 获取考试记录
     */
    fun getEmployeeExamRecord(pageVo: PageVo, jobTrainPartId: String?): Result<MutableMap<String, Any?>>?

    /**
     * 获取某个员工最新的一条的培训记录
     */
    fun getEmployeeExamRecordByUserIdAndLast(employeeUserId: String): EnterpriseEmployeeRecord?


}